package com.niodata.dp.web.forms;

import java.util.Collections;
import java.util.List;

public class ConfigItemSchema {

  private String name;
  private String description;
  private boolean required = true;
  private String defaultValue = "";
  private boolean userSetAble = true;
  private String verificationRule;
  private boolean password = false;
  private boolean modifiable = true;
  private FormItemType type = FormItemType.INPUT;
  private List<ConfigItemSchema> relatedParams = Collections.emptyList();

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public boolean isRequired() {
    return required;
  }

  public void setRequired(boolean required) {
    this.required = required;
  }

  public String getDefaultValue() {
    return defaultValue;
  }

  public void setDefaultValue(String defaultValue) {
    this.defaultValue = defaultValue;
  }

  public boolean isUserSetAble() {
    return userSetAble;
  }

  public void setUserSetAble(boolean userSetAble) {
    this.userSetAble = userSetAble;
  }

  public String getVerificationRule() {
    return verificationRule;
  }

  public void setVerificationRule(String verificationRule) {
    this.verificationRule = verificationRule;
  }

  public boolean isPassword() {
    return password;
  }

  public void setPassword(boolean password) {
    this.password = password;
  }

  public boolean isModifiable() {
    return modifiable;
  }

  public void setModifiable(boolean modifiable) {
    this.modifiable = modifiable;
  }

  public FormItemType getType() {
    return type;
  }

  public void setType(FormItemType type) {
    this.type = type;
  }

  public List<ConfigItemSchema> getRelatedParams() {
    return relatedParams;
  }

  public void setRelatedParams(
        List<ConfigItemSchema> relatedParams) {
    this.relatedParams = relatedParams;
  }
}
